package io.gitee.hefren.hhcache.command;

import io.gitee.hefren.hhcache.core.*;

/**
 * @Date 2024/7/9
 * @Author lifei
 */
public class CommandCommand implements Command {
    @Override
    public String name() {
        return CommandEnum.COMMAND.name();
    }

    @Override
    public Reply<?> exec(HhCache cache, String[] args) {
        String[] result = Commands.getCommands();
        return Reply.arrayReply(result);
    }
}
